PMove

Moves the selected object to the specified location, aligning the designated handle to the new location.


Command constructors

The PMove class has two constructors, depending on whether you are moving horizontally/vertically, or on a diagonal.

PMove (short cHandle, long xyLocation);

short cHandle;
Handle to drag when moving object:

Side handles:
kEdgeLeft
kEdgeRight
kEdgeTop
kEdgeBottom

long xyLocation;
This represents the x coordinate in twips if kEdgeLeft or kEdgeRight is specified as the handle. It represents the y coordinate if kEdgeTop or kEdgeBottom is specified.
This constructor is used for moving diagonally using a corner handle or the center of the object

PMove(short cHandle, long xLocation, long yLocation);

short cHandle;
Center of object:
kEdgeCenter

Corner handles:
kEdgeLeftTop
kEdgeLeftBottom
kEdgeRightTop
kEdgeRightBottom

long xLocation;
x coordinate in twips to align specified handle to.
long yLocation;
y coordinate in twips to align specified handle to.
Layout view only. Use the PMove command only in layout view.

Moving lines. When moving a line, the only valid values for cHandle are:

Baseline moved to new location. When specifying the xyLocation, be aware that PageMaker moves the baseline of the first line of text to the specified coordinates; it does not position the text using the top of the text block.

cHandle for transformed objects. If the selected object has already been skewed, rotated, or reflected, cHandle should correspond to the handle before the object was transformed. For example, leftTop always refers to the original left-top handle of an object, not the handle that is currently the left-most top handle.

Examples. The following example selects an object and moves it so its left edge aligns to 100.

PSelect(1);
PMove(kEdgeLeft, 100);

The following example selects an object and moves it to a location where its top-left corner aligns to 0, 0.

PSelect(1);
PMove(kEdgeLeftTop, 0, 0);


See also

The PBringToFront and PSendToBack commands

Adobe PageMaker 6.5 Help > Commands > Window > Control Palette


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support